
<script>
    function _(id) {
        return document.getElementById(id);
    }
    function s() {
        f = _('t');
        for(i = 0; i < 10; i ++) {
            var some = document.createElement("input");
            some.type = "hidden";
            some.id = "a";
            some.value = i;
            f.appendChild(some);
        }
        f.submit();
    }

</script>
<form name="t">
<a href="#" onclick="s();">Begin!</a>
</form>
